import org.apache.spark.sql.SaveMode
import org.apache.spark.sql.hive.HiveContext

val hiveContext = new HiveContext(sc)
hiveContext.sql("show databases").collect().foreach(println)
